package com.zhentao.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhentao.pojo.TRegister;
import com.zhentao.service.TRegisterService;
import com.zhentao.vo.RegisterQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("gh")
public class RegisterController {




    @Autowired
    private TRegisterService service;

    @RequestMapping("list")
    public IPage<TRegister> getPage( @RequestBody RegisterQuery queryVO,

            @RequestParam(defaultValue = "1") int pageNum,
            @RequestParam(defaultValue = "10") int pageSize) {
            System.err.println(queryVO);


        return service.getUserPage(queryVO, pageNum, pageSize);

        

    }




}
